package com.atguigu.bean;

/**
 * 钥匙表
 * @author 伟哥
 * @date 2021-06-11 12:04
 */
public class Key {
    private Integer id;// 钥匙id
    private String keyName;// 钥匙名

    private Lock lock;// 当前钥匙能开哪一把锁

    @Override
    public String toString() {
        return "Key{" +
                "idx=" + id +
                ", keyName='" + keyName + '\'' +
                ", lock=" + lock +
                '}';
    }

    public Lock getLock() {
        return lock;
    }

    public void setLock(Lock lock) {
        this.lock = lock;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        this.keyName = keyName;
    }

    public Key() {
    }

    public Key(Integer id, String keyName, Lock lock) {
        this.id = id;
        this.keyName = keyName;
        this.lock = lock;
    }
}
